function ShowOrHideMenu(obj) {
  var id = obj.getAttribute('levelOneId');
  var nodes = document.getElementsByName("menu_top");
  for(var i=0;i<nodes.length;i++) {
    var node1 = nodes[i];
    var levelOneId = node1.getAttribute('levelOneId');
    var node2 = document.getElementById(levelOneId);
    if(node2.id==id) {
      node1.parentNode.parentNode.className = "tab1";
      node2.style.display = "block";
    } else {
      node1.parentNode.parentNode.className = "tab2";
      node2.style.display = "none";
    }
  }
}
function ShowOrHideSub(obj,id) {
    if(obj.className=="tree1") {
        obj.className = "tree1b";
        document.getElementById("sub_"+id).style.display = "";
    } else if(obj.className=="tree1b") {
        obj.className = "tree1";
        document.getElementById("sub_"+id).style.display = "none";
    } else if(obj.className=="tree2") {
        obj.className = "tree2b";
        document.getElementById("sub_"+id).style.display = "";
    } else if(obj.className=="tree2b") {
        obj.className = "tree2";
        document.getElementById("sub_"+id).style.display = "none";
    }
}